{# 继承base基础模板 #}
{% extends 'demo/base.html' %}
{% load static %}
{# 重写不一样的板块 #}
{% block title %}
    HAOKE--账号注册
{% endblock %}
{% block link %}
    <link rel="stylesheet" href="{% static 'css/user/register.css' %}">
{% endblock %}
{% block header %}
    HAOKE--专业IT技术发展平台
{% endblock %}
{% block main %}
    <div class="bg">
        <div class="slogan">
            <h2>欢迎注册</h2>
            <h2>专业IT技术发展平台</h2>
        </div>
        <div class="form-box">
            <div class="main">
                <h2>注册</h2>
                <form method="post">
                    {% csrf_token %}
                    <ul>
                        {{ form }}
{#                        <li>#}
{#                            <label for="username">用户名</label>#}
{#                            <input type="text" placeholder="请输入你的用户名" id="username" name="username">#}
{#                        </li>#}
{#                        <li>#}
{#                            <label for="password">密&emsp;码</label>#}
{#                            <input type="password" placeholder="请输入你的密码" id="password" name="password">#}
{#                        </li>#}
{#                        {{ message }}#}
                        <li>
                            {{ message }}
                            <input type="submit" value="立即注册" class="submit-btn">
                        </li>
                    </ul>
                </form>
                <div class="bottom-box">
                    <a href="{% url 'login' %}">已有账号立即登录</a>
                </div>

            </div>

        </div>
    </div>
{% endblock %}



